// 以前 token 令牌，如果存到了本地，每一次都写这么长，太麻烦
// localStorage.setItem(键， 值) 存
// localStorage.getItem(键) 取
// localStorage.removeItem(键) 删
const KEY = 'interview-h5'

// 存token
export const setToken = (token) => {
  localStorage.setItem(KEY, token)
}

// 取token
export const getToken = () => {
  return localStorage.getItem(KEY)
}

// 删除token
export const remToken = () => {
  localStorage.removeItem(KEY)
}
